package cn.datawin.common.state.template.condition;

import org.squirrelframework.foundation.fsm.Condition;
import org.squirrelframework.foundation.fsm.UntypedAnonymousAction;

import java.util.List;

/**
 * 内部状态模板明细类
 * @Author: huanyayun
 * @Date: 2021/10/27 18:47
 */
public class ConditionTemplateDetail {

    /**
     * 名称
     */
    private String name;
    /**
     * 条件
     */
    private Condition<Object> condition;
    /**
     * 执行的action
     */
    private List<UntypedAnonymousAction> actions;

    public ConditionTemplateDetail(String name, Condition<Object> condition, List<UntypedAnonymousAction> actions) {
        this.name = name;
        this.condition = condition;
        this.actions = actions;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Condition<Object> getCondition() {
        return condition;
    }

    public void setCondition(Condition<Object> condition) {
        this.condition = condition;
    }

    public List<UntypedAnonymousAction> getActions() {
        return actions;
    }

    public void setActions(List<UntypedAnonymousAction> actions) {
        this.actions = actions;
    }
}
